package com.vhall.component.dao.rbac;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.vhall.component.entity.account.AccessEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author dalong
 * @date 2021-05-10 17:20
 */
@Repository
@Mapper
public interface RbacAccessMapper extends BaseMapper<AccessEntity> {

    /**
     * 查询所有 访问控制权限
     *
     * @return
     */
    @Select("select rule from access where status=0 ")
    List<Integer> selectAllRules();

}
